<?php
html::printPath(html::createCrudPath('myBankAccount', $bankAccount, 'name', 'id'));
$msg->printMessages();

$fb = new FormBuilder('bankAccount', $bankAccount);
$fb->text('name')->required()->hint();
$fb->spacer();
$fb->autocompleter('bank_name', $bankNameAcValues)->required()->disabled($bankAccountInUse);
$fb->text('number')->required()->disabled($bankAccountInUse);
$fb->text('bank_number')->required()->disabled($bankAccountInUse);
$fb->spacer();
$fb->text('iban')->disabled($bankAccountInUse);
$fb->text('swift')->disabled($bankAccountInUse);
$fb->spacer();
$fb->yesNoBox('enabled')->noEmptyOption();
$fb->submitButton();
$fb->write();
